package com.partner.boot.mapper;


import com.partner.boot.entity.Comment;
import com.partner.boot.entity.CommentQuery;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentMapper {
    List<Comment> selectComment(int offset, int length, CommentQuery query);

    int countComment(@Param("query") CommentQuery query);


    int addComment(Comment comment);

    int updateComment(Comment comment);

    int deleteComment(Integer id);

    int deletesComment(Integer[] ids);

}
